﻿<UserControl x:Class="Coding4Fun.Cannon.Phone.Controls.SettingsView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    Width="640" Height="480">
    
    <Grid x:Name="LayoutRoot" Background="{StaticResource PhoneChromeBrush}">
        <StackPanel Margin="10, 0">

            <Grid HorizontalAlignment="Stretch">
                <TextBlock Foreground="White" FontSize="32">
                    Inverse Tilt
                </TextBlock>
                <ToggleButton x:Name="IsInverseTilt"
                   Style="{StaticResource PhoneToggleSwitch}"
                    HorizontalAlignment="Right" />
            </Grid>

            <TextBlock Foreground="White" FontSize="32">
                End Point Address
            </TextBlock>

            <TextBox HorizontalAlignment="Stretch"
                     x:Name="EndpointUrl" />

            <Grid HorizontalAlignment="Stretch">
                <TextBlock Foreground="White" FontSize="32">
                    Target RC Car
                </TextBlock>
                <ToggleButton x:Name="UseRcCar"
                    Style="{StaticResource PhoneToggleSwitch}"
                    HorizontalAlignment="Right" />
            </Grid>
        </StackPanel>

        <StackPanel HorizontalAlignment="Center" VerticalAlignment="Bottom" Orientation="Horizontal">
            <Button Click="Save_Click" Content="Save"/>
            <Button Click="Cancel_Click" Content="Cancel" />
        </StackPanel>
    </Grid>
</UserControl>
